from tqsdk import TqApi,TqAuth,TqAccount, TqSim,TqKq, TqBacktest,TqReplay,TargetPosTask
import pandas as pd
持仓文件=r".\positionInfo_20240708.csv"
持仓=pd.read_csv(持仓文件,index_col=0)
api=TqApi(TqKq(),auth=TqAuth("zhangwq14", "zhangwq14"))
K线=api.get_kline_serial("SZSE.000001", 60 * 60,10 )
print(K线)
